package ar.com.temporis.fixture.system;

import ar.com.temporis.fixture.SimpleFixture;
import ar.com.temporis.system.domain.User;

public class UserFixture extends SimpleFixture {

	@Override
	protected void addEntities() {
		add(createUser("martina", "123456", "martu"));
		add(createUser("jaquelina", "123456", "jaqui"));
	}

	private User createUser(String username, String password, String nick) {
		User user = new User();

		user.setUsername(username);
		user.setPassword(password);
		user.setNick(nick);

		return user;
	}

}
